


#md5加密
import hashlib
def get_md5(password):
    #1- 实例化加密对象
    md5 = hashlib.md5()
    #2- 进行加密操作
    md5.update(password.encode('utf-8'))
    #3- 返回加密后的结果
    return md5.hexdigest()



inData='15218701897'
print(get_md5(inData))




inData={'username':'ka0589','password':'21857'}
inData['password'] = get_md5(inData['password'])
print(inData)